#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QUdpSocket>

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

    QString porcess(const QString& request);

public slots:
    void processRequest();

private:
    Ui::Widget *ui;
    //引入Udp成员
    QUdpSocket* socket;
};
#endif // WIDGET_H
